package 期末练习;

public class ToString {
        public static void main(String[] args) {
            String i ="hello java";
            String j ="hello java";

            //    equals两个字符串相等
            if (i.equals(j)) {

                String a = i.replace(" java","world");
                String b = j.replace(" java","world");

                System.out.println(a);
                System.out.println(b);


            }
        }
    }
    
